Creating and Scheduling Tasks
Multiprocessing Services provides the following functions for creating and manipulating preemptive tasks:
-
MPCreateTask
creates a preemptive task.
-
MPTerminateTask
terminates an existing task.
-
MPExit
allows a task to terminate itself.
-
MPCurrentTaskID
obtains the task ID of the current preemptive task.
-
MPGetNextTaskID
obtains the next task ID in the list of available tasks.
-
MPYield
allows a task to yield the processor to another task.
-
MPSetTaskWeight
assigns a relative weight to a task, indicating how much processor time it should receive compared to other available tasks.
-
MPTaskIsPreemptive
determines whether a task is preemptively scheduled.
© 1999 Apple Computer, Inc. – (Last Updated 17 Nov 99)